"""
 Created by 饼干 on 2019/10/30
"""
import threading
import time

__author__ = '饼干'


def worker():
    print('i am thread')
    t = threading.current_thread()
    time.sleep(8)
    print(t.getName())


# print('i am 饼干')

new_t = threading.Thread(target=worker, name='qiyue')
new_t.start()
t = threading.current_thread()
print(t.getName())